package com.example.fragmentdemo;

import androidx.appcompat.app.AppCompatActivity;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import android.os.AsyncTask;
import android.os.Bundle;
import android.util.Log;
import android.widget.LinearLayout;

public class MainActivity extends AppCompatActivity {



    LinearLayout linearLayout;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.e("androidLog","onCreate");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        linearLayout = findViewById(R.id.fragment);
//        CustomFragment customFragment = new CustomFragment();
//        FragmentManager fragmentManager = getSupportFragmentManager();
//        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction().replace(R.id.fragment,customFragment);
//        fragmentTransaction.commit();

    }

    @Override
    protected void onStart() {
        Log.e("androidLog","onStart");
        super.onStart();
    }

    @Override
    protected void onResume() {
        Log.e("androidLog","onResume");
        super.onResume();
    }

    @Override
    protected void onPause() {
        Log.e("androidLog","onPause");
        super.onPause();
    }

    @Override
    protected void onStop() {
        Log.e("androidLog","onStop");
        super.onStop();
    }

    @Override
    protected void onDestroy() {
        Log.e("androidLog","onDestroy");
        super.onDestroy();
    }
}
